package com.nchu.web.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DateDate {

	 public String doDate(){
	    Date date = new Date();
	    SimpleDateFormat matter = new SimpleDateFormat("yyyy-MM-dd");
	    String stime =matter.format(date);
	    return stime;
	}
	
    public long Tsecond(){
    	Date date = new Date();
    	long s = date.getTime();
    	return s;
    }
   
    public String dateTime(){
    	Date date = new Date();
  	    SimpleDateFormat matter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
  	    String stime =matter.format(date);
	    return stime;
    }
}
